public class Date {

	private int year;
	public int getYear() {
		return year;
	}
	
	private int month;
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		
		this.month = month;
		if (month < 1) this.month = 1;
		else if (month > 12) this.month = 12;
	}
	
	private int day;
	public int getDay() {
		return day;
	}
	public void setDay(int day) {
	
		this.day = day;
		if (day < 1) this.day = 1;
		else if (day > 12) this.day = 12;
	}
	
	public Date(int year, int month, int day) {
	
		super();
		
		this.year = year;
		setMonth(month);
		setDay(day);
		
		System.out.println("Create Date");
	}
}